n = 4;
m = 2;

A = [
 0.95,  0.16,  0.12,  0.01;
-0.12,  0.98, -0.11, -0.03;
-0.16,  0.02,  0.98,  0.03;
-0.  ,  0.02, -0.04,  1.03;
];

B = [
 0.8 , 0. ;
 0.1 , 0.2;
 0.  , 0.8;
-0.2 , 0.1;
];

x_init = ones(n,1);

T = 100;